namespace Apps.Models
{
    using PUB;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("PUB_CAR_OPERATE")]
    public partial class PUB_CAR_OPERATE
    {
        [Key]
        [Column(Order = 0)]
        [StringLength(40)]
        public string CAR_ID { get; set; }

        [Required]
        [StringLength(50)]
        public string RFID { get; set; }

        [Required]
        [StringLength(50)]
        public string LPR { get; set; }

        [StringLength(50)]
        public string DRIVER_IDCARD { get; set; }

        [StringLength(50)]
        public string DRIVER_PHONE { get; set; }

        public decimal? SPECIFIED_WEIGHT { get; set; }

        public decimal? TARE { get; set; }

        public decimal? TOTLE_LENGTH { get; set; }

        public decimal? TOTLE_WIDTH { get; set; }

        public decimal LENGTH { get; set; }

        public decimal WIDTH { get; set; }

        public decimal HEIGHT { get; set; }

        [Required]
        [StringLength(50)]
        public string POSTIONS { get; set; }

        [StringLength(40)]
        public string REGISTER_USER_ID { get; set; }

        public DateTime REGISTER_TIME { get; set; }

        [StringLength(40)]
        public string UPDATE_USER_ID { get; set; }

        [Key]
        [Column(Order = 1)]
        public DateTime UPDATE_TIME { get; set; }

        public bool? STATUS { get; set; }

        public DateTime? UNREGISTER_TIME { get; set; }

        [StringLength(200)]
        public string UNREGISTER_REASON { get; set; }

        [StringLength(50)]
        public string DRIVER_NAME { get; set; }

        [StringLength(40)]
        public string UNREGISTER_USER_ID { get; set; }

        [StringLength(50)]
        public string CAR_TYPE { get; set; }

        [StringLength(200)]
        public string CAR_SIZE { get; set; }
        
    }
}
